/**
 * author:wos
 * time:2024-1-4
 * title:清空日志
 */


async function del(ctx, next) {
    const tableName = "sys_log_login"
    const url = ctx.request.url
    const sql = `delete from ${tableName}`
    try {
        let rs = await global.query(sql)
        global.response(ctx, {
            "status": 200,
            "code": 200,
            "data": rs,
            "msg": 'success'
        })
    } catch (err) {
        global.serverError(ctx)
    }
}

module.exports = del